﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.PrePaymentInfo
{
    [Table("PaymentInfoByReceipt")]
    public class PaymentInfoByReceipt : FullAuditedEntity<Guid>
    {
        [Required]
        public Guid RestaurnatId { get; set; }
        [Required]
        public string RestaurantName { get; set; }
        [Required]
        public decimal TaskBackAmount { get; set; }
        [Required]
        public string ReceiptInfoNumber { get; set; }
        [Required]
        public Guid ReceiptInfoId { get; set; }
        [Required]
        public Guid PaymentInfoId { get; set; }

        [Required]
        public ToVoidStatus ToVoid { get; set; } = ToVoidStatus.未作废;
        public DateTime? ToVoidTime { get; set; }
    }
}
